﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OserverDesignPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            TemperatureMonitor provider = new TemperatureMonitor();

            TemperatureReporter reporter = new TemperatureReporter();
            reporter.Subscribe(provider);

            provider.GetTemperature();

            Console.ReadKey();
        }
    }
}
